package cn.itsource.user.contants;

//关于微信的一些常用信息
public class WxConfig {
    public static  String APPID="wxd853562a0548a7d0";
    //密钥
    public static  String SECRET="4a5d5615f93f24bdba2ba8534642dbb6";
    //获取access_token的地址
    public static  String GET_TOKEN_URL="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    //获取用户的个人信息
    public static String GET_USERINFO_URL="https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

    public static void main(String[] args) {
        String appid = GET_TOKEN_URL.replace("APPID", APPID).replace("SECRET",SECRET).replace("CODE","46464646416165");
        System.out.println(appid);
    }

}
